package org.jeecg.modules.dlxj.service;

import org.jeecg.modules.dlxj.entity.DlxjPole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @Description: 杆塔表
 * @Author: lzl
 * @Date:   2022-07-20
 * @Version: V1.0
 */
public interface IDlxjPoleService extends IService<DlxjPole> {
    /**
     * 通过杆塔id，获得线路名称
     * @param poleIds
     * @return
     */
    public Map<String,String> getCirName(List<String> poleIds);

    /**
     * 线路禁用
     * @param circuitryCode
     * @return
     */
    public void close(String circuitryCode);

    /**
     * 线路启用
     * @param circuitryCode
     */
    public void open(String circuitryCode);

    public void savePoleCodeAndCirCode(DlxjPole dlxjPole);

    public void updatePoleAndCir(DlxjPole dlxjPole);

    public void deletePoleAndCir(String id);

    public void deleteBatchPoleAndCir(String ids);

}
